<?php

function loadCommitee($eventid){
	$c = connect();
	$r = mysql_query("SELECT * FROM 
		(SELECT * FROM subscribers 
		WHERE role = 'Comittee' 
		AND events_idevents = ".$eventid.") AS t 
		JOIN users ON idusers = users_idusers");

	$res = array();
	while($row = mysql_fetch_assoc($r))
		array_push($res, $row);

	return $res;
}

function loadEvent($eventid){
	$c = connect();
	$r = mysql_query("SELECT * FROM events WHERE idevent = ".$eventid);
	return mysql_fetch_assoc($r);
}
?>
